// test.ts

import { MockMethod } from 'vite-plugin-mock'
export default [
  {
    url: '/admin/admin/adminapi/login',
    method: 'get',
    response: ({ query }) => {
      return {
        code: 0,
        msg: '成功',
        data: 'https://sso.zhiyinlou.com/portal/login/{appId}?param=jumpToUrl',
      }
    },
  },
  {
    url: '/v1/app/login/status/check',
    method: 'post',
    timeout: 2000,
    response: {
      errcode: 0,
      data: {
        tal_role: '1',
        life: 15552000,
        tal_type: '2',
        expire: 300,
        tal_mode: '0',
        tal_id: 'TaloC1FAp9pa7kcr21jNFxqOsA',
        tal_token:
          'tal173y_DAYKp5YLTOQKuT0Ta5vEjWpCZT29CfeLoPJXnCp1Rxs3LTH__FH7TO0yOTVljpuVHT-UFjm2OVpXbVVxGIF6bDctCQW0x-TrdYExG6OsCMJfLJtlso3txj0dZRKVFtGaTcq4JqHzn5CU2tklsJwmB9FkBq-QN8cPKyk_b3LEomkNnDDiU-MVQfZ1bWZVY6quQBLwVFMPmqLgsVtDt5P2B97371DVaILUwuGfMg2ADotkNEbSB3qhhiD74n72vjYi7zsydPUbscgEPmB6Vuqahy2t7lHFLQRY3rGV7qZXRG3_Qv8KIcZMJod9mT_wq4YDA',
      },
      errmsg: '请求成功',
    },
  },
] as MockMethod[]
